<template>
  <div class="mysore">
    <div class="mysoreBg">
      <img :src="img"/>
      <div class="mysore_name_row" style="color:#000"><div class="mysore_name">{{name}}</div></div>
      <div class="mysore_name_row" style="color:#000"><div class="mysore_num">{{num}}</div></div>
    </div>
  </div>
</template>
<script>
export default {
  data () {
    return {
      img: require('../assets/img/tongjiling.jpg'),
      name: 'MONKEEY·D·LUFFY',
      num: '12166500000'
    }
  },
  created () {
    this.num = parseFloat(this.num).toLocaleString()// 每三位数用逗号隔开
  }
}
</script>
<style scoped>
.mysore,.mysore_name_row{
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.mysoreBg{
  width: 400px;
  height: 600px;
  background: url('../assets/img/mycoreBg.jpg') no-repeat 0/100%;
  text-align: center;
}
.mysoreBg img{
  width: 92%;
  height: 49.5%;
  margin: 34% 0 0;
}
.mysore_name_row{
  width: 100%;
  height:12%;
}
.mysore_name{
  /* border: 1px solid #000; */
  width: 80%;
  margin-top: 30px;
  font-size: 28px;
  overflow: hidden;
}
.mysore_num{
  /* border: 1px solid #000; */
  font-size: 28px;
  overflow: hidden;
  width: 65%;
}
</style>
